package com.huawei.bigdate.hbaseEs.controller;

import com.huawei.bigdate.hbaseEs.service.HBaseEsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/hbaseEs")
public class HBaseEsController {

    @Autowired
    HBaseEsService hbaseEsService;

    //1. 根据交易码，表名查出交易信息
    @GetMapping("/search")
    public List<String> search(@RequestParam String pagecodeflag, @RequestParam String cashclasscode,@RequestParam String version ,String tablename) {
        return hbaseEsService.search(pagecodeflag, cashclasscode,version,tablename);
    }
}